package cn.com.nes.mybatis.agent.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 合同审查记录
 * </p>
 * @author nes
 * @since 2022-08-17
 */
@TableName("contract_audit_record")
public class ContractAuditRecord extends Model<ContractAuditRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("company_id")
    private String companyId;

    /**
     * 合同id
     */
    @TableField("contract_id")
    private String contractId;

    /**
     * 0-不通过, 1-通过
     */
    private Integer passed;

    /**
     * 审核意见
     */
    @TableField("audit_comment")
    private String auditComment;

    /**
     * 审核人id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 创建日期
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    /**
     * 修改日期
     */
    @TableField("gmt_modified")
    private Date gmtModified;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public Integer getPassed() {
        return passed;
    }

    public void setPassed(Integer passed) {
        this.passed = passed;
    }

    public String getAuditComment() {
        return auditComment;
    }

    public void setAuditComment(String auditComment) {
        this.auditComment = auditComment;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public static final String ID = "id";

    public static final String COMPANY_ID = "company_id";

    public static final String CONTRACT_ID = "contract_id";

    public static final String PASSED = "passed";

    public static final String AUDIT_COMMENT = "audit_comment";

    public static final String USER_ID = "user_id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ContractAuditRecord{" + ", id=" + id + ", companyId=" + companyId + ", contractId=" + contractId + ", passed=" + passed + ", auditComment=" + auditComment + ", userId=" + userId + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified + "}";
    }

}